package oj;

import java.util.Scanner;

public class Day45F {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            String str=sc.nextLine();
            String[] ch=str.split(" ");
            String A=ch[0];
            String B=ch[1];
            int[] arr1=new int[26];
            int[] arr2=new int[26];
            for(int i=0;i<A.length();i++){
                if(A.charAt(i)>='A' && A.charAt(i)<='Z'){
                    arr1[A.charAt(i)-'A']++;
                }

            }
            for(int i=0;i<B.length();i++){
                if(B.charAt(i)>='A' && B.charAt(i)<='Z'){
                    arr2[B.charAt(i)-'A']++;
                }
            }
            boolean flag=true;
            for(int i=0;i<26;i++){
                if((arr1[i]==0 && arr2[i]!=0) || arr2[i]>arr1[i]){
                    flag=false;
                    break;
                }
            }
            if(flag){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

        }
    }
}
